package jbook.util;
import java.awt.Point;

public class ErrorePoint {

	public static void main(String[] args) {
		Point p1 = new Point(1,0);
        Point p2 = p1;
        Point p3 = new Point(1,0);
        System.out.println("Confronto per uguaglianza:");
        System.out.println("p1.equals(p2): " +p1.equals(p2));
        System.out.println("p1.equals(p3): " +p1.equals(p3));
        System.out.println();
        System.out.println("Confronto per identita':");
        System.out.println("p1 == p2: " + (p1 == p2));
        System.out.println("p1 == p3: " + (p1 == p3));

	}

}
